package com.example.demo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.server.RequestPredicates;
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.RouterFunctions;
import org.springframework.web.reactive.function.server.ServerResponse;

@Configuration
public class RoutingConfiguration {


    @Bean
    RouterFunction<ServerResponse> getRoutingFunction() {
        return RouterFunctions
                .route(RequestPredicates.GET("/test1"), MyRestController::test);
    }

}
